﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Distribute.aspx.cs" Inherits="ORS.Web.Distribute" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style2
        {
            text-align: left;
            height: 126px;
        }
        .style4
        {
            width: 272px;
            height: 32px;
            text-align: left;
        }
        .style5
        {
            height: 32px;
            text-align: left;
        }
        .style7
        {
            width: 236px;
            height: 32px;
            text-align: center;
        }
        .style8
        {            height: 538px;
        }
        .style9
        {
            width: 272px;
            height: 48px;
        }
        .style10
        {
            width: 236px;
            height: 48px;
        }
        .style11
        {
            height: 48px;
        }
        .style12
        {
            height: 126px;
            text-align: center;
        }
        .style14
        {
            height: 20px;
        }
        .style15
        {
            height: 33px;
            text-align: left;
            width: 272px;
        }
        #form1
        {
            height: 556px;
        }
        .style16
        {
            height: 20px;
            width: 236px;
        }
        .style17
        {
            height: 20px;
            width: 272px;
        }
        .style18
        {
            font-size: small;
        }
        .style1
        {
            font-size: medium;
            font-weight: bold;
        }
        </style>

    <script type="text/javascript">
        function hasChecked(objName, msg) 
        {
          var box = document.getElementsByName(objName);
          var t=0;
          for (var j = 0; j < box.length; j++)
              { if (box[j].checked) t=t+1; }
          if (t == 1)
                  return true;
          else
                  {window.alert(msg);return false;}
          for (var i = 0; i < box.length; i++)
              { if (box[i].checked) return true; }
          window.alert(msg);
          return false;
         }
     
     </script>




</head>
<body style="width: 100%; height: 572px;">
    <form id="form1" runat="server">
    <div align="center" 
        class="style8" >
        <table id="Table_Edit" runat="server" style="width: 800px; height: 200px; margin-left: 0px;" 
            align="center">
            <tr>
                 <td class="style15">

                     论文ID:<asp:Label ID="lbl_ID" runat="server" Text="Label"></asp:Label>

                 </td>
            </tr>
            <tr>
                <td class="style9" style="text-align: left">
                    论文标题：<asp:TextBox ID="tbx_title" runat="server" 
                        Width="160px" ReadOnly="True"></asp:TextBox>
                </td>
                <td class="style10" style="text-align: center">
                    论文作者：<asp:TextBox ID="tbx_cname" 
                        runat="server" Width="108px" ReadOnly="True"></asp:TextBox>
                </td>
                <td style="text-align: left" class="style11">
                    稿件内容：<asp:HyperLink ID="Paper_link" runat="server" Target="_blank">HyperLink</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td class="style4" valign="middle">
                    研究领域: <asp:TextBox ID="tbx_interest" runat="server" ReadOnly="True" 
                        Width="133px"></asp:TextBox>
                </td>
                <td class="style7">
                    审稿人:&nbsp;<FONT size=5 class="style1"><asp:DropDownList ID="ddlRole" runat="server" Width="150px" 
                        DataSourceID="roleSqlDataSource" DataTextField="cname" DataValueField="userid">
                        <asp:ListItem>------</asp:ListItem>
                    </asp:DropDownList>

        </FONT>&nbsp;<FONT size=5 class="style1"><asp:SqlDataSource ID="roleSqlDataSource" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:DB_ConnectionString %>" 
                        SelectCommand="SELECT [userid], [cname] FROM [tb_userlist] where roleid= 1 and validflag='true'" 
                        onselecting="roleSqlDataSource_Selecting"></asp:SqlDataSource>

        </FONT>
                </td>
                <td class="style5">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" align="center" colspan="2">
                    稿件说明:<br />
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="tbx_desc" runat="server" Height="89px" ReadOnly="True" 
                        style="text-align: left; margin-left: 23px;" Width="399px" 
                        ontextchanged="tbx_desc_TextChanged"></asp:TextBox>
                </td>
                <td class="style12">
                    &nbsp;</td>
            </tr>
            <tr>
               <td class="style17">
               
                   &nbsp;</td>
               <td class="style16">
               
                   <asp:Button ID="btncomfirm" runat="server" Height="22px" 
                       onclick="btncomfirm_Click" style="text-align: center" Text="确   定" 
                       Width="85px" />
               
                   </td>
               <td style="text-align: right" class="style14">
               
                   &nbsp;</td>
            </tr>
            <tr>
                 <td colspan="3">
      <hr />
 
                 </td>
            </tr>
        </table>
 

  
        &nbsp;<asp:GridView  
            ID="gvpaper" runat="server" AutoGenerateColumns="False" 
            EnableModelValidation="True" Width="800px" 
            style="text-align: center; margin-left: 10px;" ForeColor="#333333" 
            HorizontalAlign="Center" CellPadding="4" GridLines="None">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="paperid" 
                    DataFormatString="&lt;input type=&quot;checkbox&quot; name=&quot;dgselect&quot; value=&quot;{0}&quot;&gt;" 
                    HtmlEncode="False" HeaderText="审核" >
                <ControlStyle Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="tiltle" HeaderText="论文标题" >
                <ControlStyle Width="120px" />
                </asp:BoundField>
                <asp:BoundField DataField="cname" HeaderText="作者" />
                <asp:BoundField DataField="reviewer" HeaderText="审稿人" />
                <asp:BoundField DataField="submitdate" DataFormatString="{0:yyyy-MM-dd}" 
                    HeaderText="提交日期" />
                <asp:BoundField DataField="reviewstate" HeaderText="初审状态" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <table style="width:100%; margin-top: 20px;">
            <tr>
                <td class="style18">
                    初审状态说明：0-送审&nbsp; 1--待审&nbsp; 2--通过&nbsp; 3--退修&nbsp; 4--拒绝退修&nbsp; 4--拒绝</td>
            </tr>
        </table>
        <br />
        <asp:Button ID="btnapprove" runat="server" onclick="btnapprove_Click" 
            style="text-align: center" Text="审  核" Width="87px" 
            onclientclick="return hasChecked('dgSelect','请选择一条记录')" />
        <br />
        <br />
        <br />
    
    </div>
    </form>
</body>
</html>
